package com.kila;

import com.kila.dao.AccountDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TransactionTest {
    public static void main(String[] args){
        ApplicationContext applicationContext =
              new ClassPathXmlApplicationContext("applicationContext.xml");

       AccountDao accountDao=(AccountDao) applicationContext.getBean("accountDao");
       accountDao.transfer("jacky","Rose",100.0);
       //输出提示

        System.out.println("转账成功");


    }
}
